package com.xuecheng.learning.dao;

import com.xuecheng.framework.domain.learning.XcLearningCourse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 学生选课
 *
 * @author zhaoxiang
 * @version 1.0
 * @Date 2020/2/27 14:49
 */
@Repository
public interface XcLearningCourseRepository extends JpaRepository<XcLearningCourse, String> {

    //根据用户和课程查询选课记录，用于判断是否添加选课
    XcLearningCourse findXcLearningCourseByUserIdAndCourseId(String userId, String courseId);
}
